<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template/template.xhtml">
	<ui:define name="menu" />
	<ui:define name="content">
		<h1 style="font-family: calibri; font-size: 25px;">Find tutors</h1>
		<h:form>
			<p:panelGrid columns="2">
				<p:inputText size="80" value="#{tutorSearchController.searchString}" />
				<p:commandButton value="Find tutors"
					action="#{tutorSearchController.searchTutors}" ajax="true"
					update="@form" />
			</p:panelGrid>
			<br></br>
			<h:dataTable value="#{tutorSearchController.tutorList}" var="tutor">
				<p:column>
					<h:outputText
						value="#{tutor.firstName} #{tutor.middleName} #{tutor.lastName}"
						styleClass="SIMPLE_TEXT" />
					<p:rating />
				</p:column>
				<p:column>

				</p:column>
			</h:dataTable>
		</h:form>
	</ui:define>
	<ui:define name="toolbar" />
</ui:composition>
</html>